/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


var apuxin = $H();

// Better isArray Method than in the MooTools Framework
apuxin.isArray = function(a)
{
    return Object.prototype.toString.call(a) === '[object Array]';
}

// Main Service Class. Ready to implement :D
apuxin.Service = new Class({
    Implements: [Options, Events, Chain],

    options: {
        
    },

    initialize: function(name, options)
    {
        this.setOptions(options);
    }
});

// Main Widget Class. To be extended
apuxin.Widget = new Class({
    Implements: [Options, Events, Chain],

    options: {
        name: 'Widget',
        classname: 'standardwidget'
    },

    mainelement: $empty(),

    addToWorkplace: function()
    {
        console.log(this.mainelement);
        $('workspace').adopt(this.mainelement);
    },

    createContainer: function()
    {

    }
});